﻿using App.Services;
using Microsoft.AspNetCore.Mvc;

namespace App.Controllers
{
    public class GreetingController
    {
        [HttpGet("/greet")]
        public string Greeting([FromServices]IGreetingService service)=>service.Greeting(DateTimeOffset.Now);
    }
}
